#define  _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
    unsigned int n;
    scanf("%u", &n);
    int a[32];
    int i = 0;
    while (n > 0)
    {
        a[i] = n % 2;
        n /= 2;
        i++;
    }
    for (int j = i - 1; j >= 0; j--)
    {
        printf("%d", a[j]);
    }
    return 0;
}